package com.ruoyi.gcgl.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.gcgl.mapper.GcProjectSbclhtcrkdMapper;
import com.ruoyi.gcgl.domain.GcProjectSbclhtcrkd;
import com.ruoyi.gcgl.service.IGcProjectSbclhtcrkdService;
import com.ruoyi.common.core.text.Convert;

/**
 * 设备材料合同出入库单Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-12-03
 */
@Service
public class GcProjectSbclhtcrkdServiceImpl implements IGcProjectSbclhtcrkdService 
{
    @Autowired
    private GcProjectSbclhtcrkdMapper gcProjectSbclhtcrkdMapper;

    /**
     * 查询设备材料合同出入库单
     * 
     * @param id 设备材料合同出入库单主键
     * @return 设备材料合同出入库单
     */
    @Override
    public GcProjectSbclhtcrkd selectGcProjectSbclhtcrkdById(Long id)
    {
        return gcProjectSbclhtcrkdMapper.selectGcProjectSbclhtcrkdById(id);
    }

    /**
     * 查询设备材料合同出入库单列表
     * 
     * @param gcProjectSbclhtcrkd 设备材料合同出入库单
     * @return 设备材料合同出入库单
     */
    @Override
    public List<GcProjectSbclhtcrkd> selectGcProjectSbclhtcrkdList(GcProjectSbclhtcrkd gcProjectSbclhtcrkd)
    {
        return gcProjectSbclhtcrkdMapper.selectGcProjectSbclhtcrkdList(gcProjectSbclhtcrkd);
    }

    /**
     * 新增设备材料合同出入库单
     * 
     * @param gcProjectSbclhtcrkd 设备材料合同出入库单
     * @return 结果
     */
    @Override
    public int insertGcProjectSbclhtcrkd(GcProjectSbclhtcrkd gcProjectSbclhtcrkd)
    {
        return gcProjectSbclhtcrkdMapper.insertGcProjectSbclhtcrkd(gcProjectSbclhtcrkd);
    }

    /**
     * 修改设备材料合同出入库单
     * 
     * @param gcProjectSbclhtcrkd 设备材料合同出入库单
     * @return 结果
     */
    @Override
    public int updateGcProjectSbclhtcrkd(GcProjectSbclhtcrkd gcProjectSbclhtcrkd)
    {
        return gcProjectSbclhtcrkdMapper.updateGcProjectSbclhtcrkd(gcProjectSbclhtcrkd);
    }

    /**
     * 批量删除设备材料合同出入库单
     * 
     * @param ids 需要删除的设备材料合同出入库单主键
     * @return 结果
     */
    @Override
    public int deleteGcProjectSbclhtcrkdByIds(String ids)
    {
        return gcProjectSbclhtcrkdMapper.deleteGcProjectSbclhtcrkdByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除设备材料合同出入库单信息
     * 
     * @param id 设备材料合同出入库单主键
     * @return 结果
     */
    @Override
    public int deleteGcProjectSbclhtcrkdById(Long id)
    {
        return gcProjectSbclhtcrkdMapper.deleteGcProjectSbclhtcrkdById(id);
    }
}
